﻿using EONFULLSIN2.Models.Dto.Device;
using EONFULLSIN2.Models.Enum.SensorPoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Services.Device.ZhongChuangZhiHe {

    /// <summary>
    /// 中创智和Modbus服务接口，务必注册成单例
    /// </summary>
    public interface IZczhModbusService : IModbusBaseServices {

        /// <summary>
        /// 获取传感器数据
        /// </summary>
        /// <returns></returns>
        Task<List<SensorItemDto>> GetSensorDataAsync();

        /// <summary>
        /// 获取传感器【电流】数据
        /// </summary>
        /// <returns></returns>
        Task<double?> GetCurrentDataByIndexAsync(eCurrentPointEnum eCurrentPointEnum);

        /// <summary>
        /// 获取传感器【电压】数据
        /// </summary>
        /// <returns></returns>
        Task<double?> GetVoltageDataByIndexAsync(eVoltagePointEnum eCurrentPointEnum);

    }

}
